import React from 'react';
import {useParams, useMatch} from 'react-router-dom'

const Detail = () => {

  const {id, title, content} = useParams()
  // console.log(useMatch('/home/message/detail/:id/:title/:content'))

  return (
    <ul>
      <li>消息编号：{id}</li>
      <li>消息标题：{title}</li>
      <li>消息内容：{content}</li>
    </ul>
  );
};

export default Detail;